// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 排行榜  POST */
export async function rank(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AssessWeekCollectAppRankData.Rank[]>>('/assess/week/collect/app/rank', {
    method: 'POST',
    data: options || {},
  });
}

/** 初始化 排行榜 POST */
export async function rankInit(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AssessWeekCollectAppRankData.RankInit>>(
    '/assess/week/collect/app/rank/init',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 分析 排行榜 POST */
export async function rankAnalysis(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AssessWeekCollectAppRankData.RankAnalysis>>(
    '/assess/week/collect/app/rank/analysis',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 导出  排行榜 POST */
export async function exportRank(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AssessWeekCollectAppRankData.RankAnalysis>>(
    '/assess/week/collect/app/rank/export/excel',
    {
      method: 'POST',
      data: options || {},
      responseType: 'blob',
    },
  );
}
